<?php
/**
 * Created by PhpStorm.
 * User: sosyuki
 * Date: 2018/3/19
 * Time: 18:42
 */

namespace Drupal\wx_pay\ViewsController;

use Drupal\wx_pay\ViewsController\handler\field\WxPayMoney;
use EntityDefaultViewsController;

class WxPayTransactionViewsController extends EntityDefaultViewsController {

  public function views_data() {
    $data = parent::views_data();
    $data['wx_pay_transaction']['total_fee']['field']['handler'] = WxPayMoney::class;
    $data['wx_pay_transaction']['coupon_fee']['field']['handler'] = WxPayMoney::class;
    $data['wx_pay_transaction']['cash_fee']['field']['handler'] = WxPayMoney::class;
    return $data;
  }
}
